﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_kcgl_dykcxxhdb : System.Web.UI.Page
{
    DataClassesDataContext db = new DataClassesDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        BindData();
    }
    private void BindData()
    {
        int subjectNo = Convert.ToInt32(Request.QueryString["subjectNo"].ToString());
        string classNo = Request.QueryString["classNo"].ToString();
        string examName = Request.QueryString["place"].ToString();
        var SchRes = (from p in db.proc_GetBkgxNowYear()
                      select p).ToList().First();
        la_SchoolName.Text = SchRes.schoolName;
        la_BkYear.Text = SchRes.dYear;
        la_ExamName.Text = classNo + "(" + examName + ")";
        var ExamStuRes = from p in db.proc_GetExamStuInfoBySubjectNoClassNo(subjectNo, classNo)
                         select p;
        DataList1. DataSource = ExamStuRes;
        DataList1.DataBind();
    }
}